package org.example.day01;

import java.util.ArrayList;
import java.util.List;

public class MyThread2{
    public static void main(String[] args) {
        List<String> monthList = new ArrayList<>();
        int startMonth = 9;
        int endMonth = 3;
        //不跨年
        if (startMonth <= endMonth) {
            while (endMonth - startMonth >= 0) {
                String s = String.valueOf(startMonth);
                s = s.length() == 1 ? "0" + s : s;
                monthList.add(s);
                startMonth++;
            }
        } else if (startMonth > endMonth) { //跨年
            //startMonth到年末
            while (startMonth <= 12) {
                String s1 = String.valueOf(startMonth);
                s1 = s1.length() == 1 ? "0" + s1 : s1;
                monthList.add(s1);
                startMonth++;
            }
            //年初到endMonth
            for (int i = 1; endMonth > 0; endMonth--, i++) {
                String s = String.valueOf(i);
                s = s.length() == 1 ? "0" + s : s;
                monthList.add(s);
            }
        }
        System.out.println(123);
        //执行查询
//        IPage<SysKf10000LogCascade> result = sysKf10000LogMapper.selectOperLog1(page, sysKf10000LogCascade, monthList);
    }

}
